package com.matt.foundation.vo;

import com.matt.foundation.DO.ChildrenCheckRecordDO;
import com.matt.foundation.DO.ChildrenCourseItemDO;
import com.matt.foundation.constant.ObservationConstant;
import com.matt.foundation.vo.observation.ObservationChildrenListVo;
import lombok.Data;
import org.apache.commons.lang.StringUtils;

import java.util.List;
import java.util.Objects;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2017/9/25
 * *******************************
 */
@Data
public class LiveRecordCourseVo {

    private String id;

    private String name;

    private Integer gender;

    private String imgUrl;

    private Integer checkStatus;

    public static LiveRecordCourseVo ofNurseryCourse(ChildrenCheckRecordDO children){
        LiveRecordCourseVo vo = new LiveRecordCourseVo();
        vo.setId(children.getChildrenId());
        vo.setName(children.getChildrenName());
        vo.setGender(children.getGender());
        vo.setCheckStatus(Integer.valueOf(children.getCheckStatus()));
        return vo;
    }

    public static LiveRecordCourseVo ofEarlyCourse(ChildrenCourseItemDO item){
        LiveRecordCourseVo vo = new LiveRecordCourseVo();
        vo.setId(item.getChildrenId());
        vo.setName(item.getName());
        vo.setGender(item.getGender());
        vo.setCheckStatus(item.getStatus());
        return vo;
    }
}
